<script src="__STATIC__/index/js/typical_u.js" type="text/javascript"></script>
<script src="__STATIC__/index/js/swiper.min.js" type="text/javascript"></script>
<script>
    $(document).ready(function() {
        $('#main').lightGallery({
            zoomFromImage: false,
            selector: '.lightgallery_item',
            thumbnail: true,
            animateThumb: false,
            showThumbByDefault: false
        })
    });
    var swiper = new Swiper('.swiper-container', {
        pagination: '.swiper-pagination',
        nextButton: '.swiper-button-next',
        prevButton: '.swiper-button-prev',
        paginationClickable: true,
        centeredSlides: true,
        autoplay: 3333,
        loop: true
    });
    $(document).ready(function() {
        $('nav#menu').mmenu({
            extensions: ['border-full', "pagedim-black"],
            counters: true,
            navbar: {
                title: 'Advanced Menu'
            },
            navbars: [{
                position: 'top'
            },
                {
                    position: 'bottom',
                    content: ['<a href="https://www.songhaifeng.com/" title="小锋博客">小锋博客</a>']
                }]
        });
        var API = $("nav#menu").data("mmenu");
        $(".mm-listview li a:not(a.mm-next)").click(function() {
            API.close()
        });
        $('#hamburger').on('click',
            function(e) {
                e.preventDefault();
                var $html = $('html');
                if ($html.hasClass('mm-opened')) {
                    API.close()
                } else {
                    API.open()
                }
            })
    });
</script>
<!--<script type="text/javascript" src="__STATIC__/index/js/pjax_u.js"></script>-->
<div class="pjax_loading"></div>
<script type="text/javascript" src="__STATIC__/index/js/sf_praise_sdk.js"></script>
<script type="text/javascript">
    $("#btnPosts").click(function() {
        var strUserName = $("#edtUserName").val();
        var strPassWord = $("#edtPassWord").val();
        var strSaveDate = $("#savedate").val();
        if ((strUserName == "") || (strPassWord == "")) {
            alert("用户名和密码不能为空");
            return false;
        };
        $("form").attr("action", "https://www.songhaifeng.com/zb_system/cmd.php?act=verify");
        $("#username").val(strUserName);
        $("#password").val(MD5(strPassWord));
        $("#savedate").val(strSaveDate);
    });
    $("#chkRemember").click(function() {
        $("#savedate").attr("value", $("#chkRemember").attr("checked") == "checked" ? 30 : 0);
    })
</script>
<script type="text/javascript" src="__STATIC__/index/js/gt.js"></script>
<script type="text/javascript" src="__STATIC__/index/js/plugin.js"></script>